%% 配合 \documentclass[nobabel]{cdcalendar} 使用，汉化日历
\usepackage[fontset=fandol]{ctex}

\deftranslation{January}{一月}
\deftranslation{February}{二月}
\deftranslation{March}{三月}
\deftranslation{April}{四月}
\deftranslation{May}{五月}
\deftranslation{June}{六月}
\deftranslation{July}{七月}
\deftranslation{August}{八月}
\deftranslation{September}{九月}
\deftranslation{October}{十月}
\deftranslation{November}{十一月}
\deftranslation{December}{十二月}

\deftranslation{Sunday}{日}
\deftranslation{Monday}{一}
\deftranslation{Tuesday}{二}
\deftranslation{Wednesday}{三}
\deftranslation{Thursday}{四}
\deftranslation{Friday}{五}
\deftranslation{Saturday}{六}
\newcommand{\zhwkday}[1]
{\ifcase#1一\or 二\or 三\or 四\or 五\or 六\or 日\fi}

\renewcommand{\eventSep}{：}

% 在此向专业的排版员、美术设计人员叩头请罪，以下直排实现方法实在简单粗暴、罪孽深重
\patchcmd{\monthCalendar}{rotate=-90,transform shape,}{align=flush center,text width=5.2\ccwd,}{}{}
\patchcmd{\monthCalendar}
  {\pgfcalendarmonthname{#2} #1}
  {\pgfcalendarmonthname{#2}\\%
    \raisebox{0.75em}{\rotatebox{-90}{#1}}%
  }
  {}{}
\patchcmd{\monthCalendar}{mainMonthHead.south east}{mainMonthHead.south west}{}{}

\patchcmd{\monthCalendar}{--}{—}{}{}

\AtBeginDocument{\renewcommand*{\DTMdisplaydate}[4]{\number#2月\number#3日}}
